import request from '@/utils/request'

// 查询光伏电站电价信息明细列表
export function listElectricityPriceDetail(query) {
  return request({
    url: '/business/electricityPriceDetail/list',
    method: 'get',
    params: query
  })
}

// 查询光伏电站电价信息明细详细
export function getElectricityPriceDetail(detailId) {
  return request({
    url: '/business/electricityPriceDetail/getInfoById/' + detailId,
    method: 'get'
  })
}

// 新增光伏电站电价信息明细
export function addElectricityPriceDetail(data) {
  return request({
    url: '/business/electricityPriceDetail/add',
    method: 'post',
    data: data
  })
}

// 修改光伏电站电价信息明细
export function updateElectricityPriceDetail(data) {
  return request({
    url: '/business/electricityPriceDetail/edit',
    method: 'put',
    data: data
  })
}

// 删除光伏电站电价信息明细
export function delElectricityPriceDetail(detailId) {
  return request({
    url: '/business/electricityPriceDetail/remove/' + detailId,
    method: 'delete'
  })
}
